import { instance as request } from "@/utils/request"
type RETURNDATA = {
  code: number
  msg: string
  data?: any
}
const getRouters = (url: string, params?: any) => {
  return request<any, RETURNDATA>({
    method: "GET",
    url,
    params: params,
  })
}

export { getRouters }
